package com.djzhou.util;

import java.util.Date;

import jodd.datetime.JDateTime;

public class ELFuncUtil {
	
	public static String append(String str1, String str2) {
	       return str1 + str2;
	}
	
	public static String appendKick(String str1,String str2) {
	       return str2 + str1 + str2;
	}
	public static Integer daysBetween(Date date1,Date date2){
		if (date1==null) date1=new Date();
		if (date2==null) date2=new Date();
		JDateTime jdate1=new JDateTime(date1);
		JDateTime jdate2=new JDateTime(date2);
		return jdate1.daysBetween(jdate2);
	}
	public static Integer daysBetweenNow(Date date){
		JDateTime jdate1=new JDateTime();
		JDateTime jdate2=new JDateTime(date);
		return jdate1.daysBetween(jdate2);
	}
}
